
@import "editor_to";
@import url('//fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,700,600');

@mixin materialize-button {
  border-radius: 2px;
  box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2);
  &:hover {
    box-shadow: 0 3px 3px 0 rgba(0, 0, 0, 0.14), 0 1px 7px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -1px rgba(0, 0, 0, 0.2);
  }
}

.tvo-menu-onpage {
  background: #eaeaea;
  border: 1px solid #ccc;
  box-shadow: 1px 1px 1px 0 rgba(#000, .2), 1px 0 0 0 #fafafa inset, 0 1px 0 0 #fafafa inset;
  border-radius: 2px;
  font-family: 'Source Sans Pro', sans-serif;
  height: 46px;
  position: fixed;
  left: 0;
  right: 0;
  z-index: 10001;
}

.tvo-menu-onpage-container {
  margin: 7px auto;
  max-width: 1080px;
}

.tvo_menu_item {
  background: #fff !important;
  border-radius: 2px !important;
  border: 1px solid #ccc !important;
  color: #626262;
  cursor: pointer;
  display: inline-block;
  font-size: 15px;
  font-weight: 300;
  height: 30px !important;
  line-height: 28px;
  padding: 0 5px;
}

.tvd-modal {
  max-width: 960px !important;
}

.tvo-modal-close {
  float: right;
}

.tvo_save_changes {
  background: #2ecc71 !important;
  border: 1px solid #22b25f !important;
  color: #fff;
  float: right;
}

#tvo-display-testimonials {
  min-width: 770px;
}

#tvo-form-settings, #tvo-testimonial-templates, #tvo-display-testimonials {
  font-family: 'Source Sans Pro', sans-serif;
  max-height: 90%;
  top: 5% !important;

  .tvd-modal-content {
    box-sizing: border-box;
    padding: 30px;
  }

  .tvd-modal-close {
    background: #ccc;
    border-radius: 30px;
    color: #fff;
    height: 22px;
    line-height: 20px;
    font-size: 14px;
    position: absolute;
    top: 15px;
    right: 15px;
    text-align: center;
    width: 22px;
    z-index: 300000001;
  }

  @media only screen and (min-width: 1080px) {
    min-width: 80%;
  }
}

.tvo-frontend-modal {
  h4 {
    color: #333;
    font-weight: 400;
    font-size: 24px;
    line-height: 1.5em;
    margin-bottom: 20px;
  }

  h5 {
    color: #333;
    font-weight: 400;
    font-size: 20px;
    line-height: 1.5em;
    margin-bottom: 20px;
    margin-top: 0;
  }

  .tve_lightbox_line {
    border: 0;
    background: #e8e8e8;
    display: block;
    height: 2px;
    margin: 20px -30px;
    padding: 0;
  }

  table {
    border: 0;
    border-collapse: separate;
    width: 100%;

    thead {
      th {
        border: 0;
        border-top: 1px solid #ccc;
        border-bottom: 1px solid #ccc;
        background: #dae8c9;
        color: #333;
        font-weight: 600;
        padding: 20px;

        &:first-child {
          border-top-left-radius: 5px;
          border-left: 1px solid #ccc;
        }

        &:last-child {
          border-top-right-radius: 5px;
          border-right: 1px solid #ccc;
        }
      }
    }

    tfoot {
      td {
        border: 0;
        background: #f7f7f7;
        border-bottom: 1px solid #cccccc;
        color: #666666;
        font-size: 16px;
        font-weight: 400;
        padding: 20px;

        &:first-child {
          border-bottom-left-radius: 5px;
          border-left: 1px solid #cccccc;
        }

        &:last-child {
          border-bottom-right-radius: 5px;
          border-right: 1px solid #cccccc;
        }
      }
    }

    thead + tbody {
      tr {
        &:first-child {
          td {
            border-top: 0;
          }
        }
      }
    }

    tbody {
      tr.tve_first_row {
        td {
          &:first-child {
            &:after {
              left: 0;
            }
          }

          &:last-child {
            &:after {
              right: 0;
            }
          }
        }
      }

      tr {
        &:first-child {
          td {
            border-top: 1px solid #cccccc;
          }
        }

        &:last-child {
          td {
            border-bottom: 1px solid #ccc;

            &:after {
              display: none;
            }
          }
        }

        td {
          border: 0;
          background: #fff;
          color: #333;
          font-weight: 400;
          font-size: 16px;
          padding: 20px;
          position: relative;

          &:first-child {
            border-left: 1px solid #ccc;

            &:after {
              left: 20px;
            }
          }

          &:last-child {
            border-right: 1px solid #ccc;

            &:after {
              right: 20px;
            }
          }

          &:after {
            background: #ccc;
            content: '';
            display: block;
            height: 1px;
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
          }
        }
      }
    }
  }

  .tve_lightbox_input, .tve_lightbox_textarea {
    box-shadow: 0 2px 7px 0 rgba(#000, .1) inset;
    border: 1px solid #ccc;
    background: #fff;
    box-sizing: border-box;
    color: #333;
    font-size: 14px;
    outline: none;
    width: 100%;

    &::-webkit-input-placeholder {
      color: #333;
    }

    &:hover {
      box-shadow: none;
      border: 1px solid rgba(#6e9d43, .35);
      background: #f3f1f1;
    }

    &:active, &:focus {
      box-shadow: none;
      border: 1px solid #6e9d43;
      background: #fff;
    }

    &[readonly] {
      border: 1px solid #ccc;
    }
  }

  .tve_lightbox_input {
    line-height: 40px;
    padding: 0 10px;
  }

  .tve_lightbox_input_holder {
    display: inline-block;
    position: relative;
    padding: 5px 20px 5px 0;

    &.tve_lightbox_no_label {
      padding-right: 0;
    }

    input[type="checkbox"] {
      &:not(:checked),
      &:checked {
        position: absolute;
        visibility: hidden;

        + label {
          cursor: pointer;
          font-size: 16px;
          line-height: 20px;
          position: relative;
          padding-left: 35px;

          &:before {
            background-color: #fff;
            border: 1px solid #cccccc;
            content: '';
            height: 17px;
            position: absolute;
            left: 0;
            top: 2px;
            width: 17px;
          }

          &:after {
            content: "\02713";
            color: #fff;
            font-size: 16px;
            font-weight: 600;
            line-height: 21px;
            position: absolute;
            top: 0;
            left: 4px;
          }
        }
      }

      &:not(:checked) + label:after {
        opacity: 0;
      }

      &:checked + label:after {
        color: #686868;
      }

      &:checked + label:after {
        opacity: 1;
      }
    }
  }

  .tve_lightbox_select_holder {
    select {
      border: solid 1px #cdd3d8;
      border-radius: 4px;
      box-sizing: border-box;
      color: #6d7882;
      font-size: 13px;
      height: 28px;
      text-indent: 6px;
      -moz-appearance: none;
      -webkit-appearance: none;
      width: 100%;
      max-width: 100%;
      transition: all .3s ease;
      background: url("data:image/svg+xml;charset=utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512' fill='%236d7882' width='8px' height='13px'><path d='M441.9 167.3l-19.8-19.8c-4.7-4.7-12.3-4.7-17 0L224 328.2 42.9 147.5c-4.7-4.7-12.3-4.7-17 0L6.1 167.3c-4.7 4.7-4.7 12.3 0 17l209.4 209.4c4.7 4.7 12.3 4.7 17 0l209.4-209.4c4.7-4.7 4.7-12.3 0-17z'></path></svg>") no-repeat;
      background-position: right 7px center;
      appearance: none;
      -moz-appearance: none;
      -webkit-appearance: none;
      padding-right: 20px;
      background-color: #fff;
    }
  }

  .word_count_lightbox_holder {
    min-width: 135px;
    word-break: break-word;
  }

  .tve-button {
    @include materialize-button;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 12px;
    line-height: 12px;
    padding: 7px 10px;
    font-weight: 500;
    text-align: center;
    text-transform: uppercase;
    transition: 0.3s;

    &:focus, &:active {
      outline: none;
    }

    &.grey {
      background-color: #6d7882;
    }

    &.lightgrey {
      background-color: #969fa6;
    }

    &.whitey {
      background-color: #f0f3f3;
      color: #6d7882;
    }

    &.blue {
      background-color: #1da5e5;
    }

    &.green {
      background-color: #52a13d;
    }
  }

  .tve_left {
    float: left;
  }

  .tve_right {
    float: right;
  }

  .tve_overflow_y {
    max-height: 623px;
    margin-bottom: 20px;
    overflow-x: hidden;
    overflow-y: scroll;
    padding: 2px;
  }

  .tve_grid_cell, .tve_cloud_tpl_item {
    margin: 0 10px 20px 10px;
    display: inline-block;
    float: none;
  }

  .tve_landing_pages.tve_grid {
    margin: 0;

    .tve_grid_cell {
      box-shadow: 0 0 4px 0 rgba(#000, .38);
      box-sizing: border-box;
      cursor: pointer;
      float: left;
      font-size: 15px;
      margin-bottom: 25px;
      position: relative;
      padding: 6px 6px 3em;

      > img {
        display: block;
        width: 100%;
        height: auto;
      }

      .tve_cell_caption_holder {
        color: #333;
        display: block;
        margin: 10px 0;
        position: absolute;
        left: 0;
        bottom: 0;
        width: 100%;
        line-height: 1.1em;
        font-size: 15px;
        text-align: center;

        .tve_cell_caption {
          display: block;
        }
      }

      > .tve_cell_check {
        border-radius: 50%;
        background: #a5c08b;
        color: #fff;
        display: none;
        height: 26px;
        line-height: 26px;
        position: absolute;
        right: -13px;
        bottom: -13px;
        width: 26px;
      }

      &.tve_cell_selected, &:hover {
        box-shadow: 0 0 0 2px #a5c08b inset;
      }

      &.tve_cell_selected {
        .tve_cell_check {
          display: block;
        }
      }
    }
  }

  .tve_cloud_tpl_item {
    float: left;
    margin-bottom: 20px;

    .tve_grid_cell {
      display: block;
      float: none !important;
      margin-bottom: 10px !important;
      width: 100%;
    }
  }

  .tve_cell_check {
    text-align: center;
  }

  .tve_scT {
    margin: 0;
  }

  .tve_scT {
    > ul {
      list-style-type: none;
      margin: 0 !important;
      padding: 0 !important;

      li {
        box-sizing: border-box;
        border-left: 0;
        border-top: 1px solid #d5d5d5;
        border-right: 1px solid #d5d5d5;
        border-radius: 0;
        background: #f8f8f8;
        color: #333;
        display: block;
        float: left;
        font-size: 18px;
        margin: 0 !important;
        padding: 15px 30px;
        position: relative;
        text-transform: none;
        width: auto !important;
        z-index: 2;

        &:first-child {
          border-left: 1px solid #dbdbdb;
        }

        &:hover {
          cursor: pointer;
          padding-bottom: 15px !important;
        }

        &.tve_tS {
          background: #fff;
          margin-bottom: 0 !important;
          padding-bottom: 15px !important;

          &:before {
            background: #80a758;
            content: '';
            display: block;
            height: 2px;
            position: absolute;
            left: 0;
            right: 0;
            top: 0;
          }

          span {
            color: #333333 !important;
          }
        }
      }
    }

    .tve_scTC {
      box-sizing: border-box;
      background: #fff;
      border: 1px solid #d5d5d5;
      border-radius: 0;
      padding: 30px 30px 31px;
      z-index: 2;
      width: 100%;
    }
  }
}

.tve_clearfix:after {
  content: "";
  display: block;
  clear: both;
  visibility: hidden;
  line-height: 0;
  height: 0;
}

.tvo_toggle_fields_box {
  .tvo_config_field {
    margin: 0 5px;
    position: relative;
    top: -2px;
    vertical-align: middle;
  }
}

.tvo-showhide-fields {
  line-height: 29px;
  vertical-align: middle;

  label {
    display: inline-block;
  }
}

.tvo-menu-relative {
  position: relative;

  .tvo_icon_box {
    position: relative;
    top: 1px;
  }
}

.tvo-menu-inline-block {
  display: inline-block;
}

.tvo_toggle_fields_box {
  border-radius: 2px;
  box-shadow: 0 4px 11px -9px #000;
  border: 1px solid #ccc;
  background: #fff;
  padding: 10px 20px;
  position: absolute;
  top: 35px;
  left: 0;
  min-width: 130px;
  z-index: 10000;

  &.tvo_fields_box {
    min-width: 140px;
  }

  .tvo_template_colors {
    margin-bottom: 0;
    width: 130px;
  }

  ul {
    margin: 0;
  }
}

.tvo-testimonial-list-title {
  font-size: 16px;
  line-height: 1.5em;
  height: 1.5em;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  white-space: nowrap;
}

.tve-button {
  border-radius: 2px;
  box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2);
  border: none;
  color: #fff !important;
  cursor: pointer;
  font-size: 12px;
  line-height: 12px;
  padding: 7px 10px;
  font-weight: 500;
  text-align: center;
  text-transform: uppercase;
  transition: 0.3s;

  &:focus, &:active {
    outline: none;
  }

  &.lightgrey {
    background-color: #969fa6;
  }

  &.blue {
    background-color: #1da5e5;
  }

  &.green {
    background-color: #52a13d;
  }

  &.red {
    background-color: #f72200;
  }
}
